package com.gzhu.knowledgeAdmin.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "table_labels")
public class TableLabel {

    @Id
    private String tableName;

    private String label;

    // 无参数的构造函数
    public TableLabel() {
    }

    // 全参数的构造函数
    public TableLabel(String tableName, String label) {
        this.tableName = tableName;
        this.label = label;
    }

    // getter 和 setter
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String toString() {
        return "TableLabel{" +
                "tableName='" + tableName + '\'' +
                ", label='" + label + '\'' +
                '}';
    }
}
